package com.sf.osms.dep.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Polymorphism;
import org.hibernate.annotations.PolymorphismType;

import com.sf.novatar.base.domain.LongIdBean;

@Entity
@Table(name = "wbs_tt_router_problem")
@Polymorphism(type = PolymorphismType.EXPLICIT)
public class RouterProblemRecord extends LongIdBean implements
		java.io.Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private Long id;

	/**
	 * 代理名称
	 */
	@Column(name = "AGENT_NAME")
	private String agentName;

	/**
	 * 错误文件名称
	 */
	@Column(name = "FILE_NAME")
	private String fileName;

	/**
	 * 本地文件路径
	 */
	@Column(name = "LOCAL_FILE_PATH")
	private String localFilePath;

	/**
	 * 错误代码
	 */
	@Column(name = "ERROR_CODE")
	private String errorCode;

	/**
	 * 错误内容
	 */
	@Column(name = "ERROR_DESC")
	private String errorDesc;

	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_TIME")
	private Date createTime;
	
	@Transient
	private String errorEnDesc;
	
	public String getErrorEnDesc() {
		return errorEnDesc;
	}

	public void setErrorEnDesc(String errorEnDesc) {
		this.errorEnDesc = errorEnDesc;
	}

	/**
	 * 状态
	 */
	@Column(name = "STATE")
	private int state;

	
	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getLocalFilePath() {
		return localFilePath;
	}

	public void setLocalFilePath(String localFilePath) {
		this.localFilePath = localFilePath;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorDesc() {
		return errorDesc;
	}

	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}
